package com.example;

import com.example.spi.Log;

import java.util.ServiceLoader;

/**
 * @author cxx
 * @create 2020-09-09 10:42
 **/
public class Main {

    public static void main(String[] args) {
        ServiceLoader<Log> serviceLoader = ServiceLoader.load (Log.class);
        for (Log log : serviceLoader) {
            log.log ("测试下");
        }
    }

}
